package parser;

public class Token implements Comparable<Token> {

	String matchedString;
	LexSymbol lexSymbol;
	int begin;
	int end;
	int precedence;
	boolean isLeftAssociative;
	
	public int compareTo(Token o1) {
		if(this.begin > o1.begin){
			return 1;
		}
		else if(this.begin < o1.begin){
			return -1;
		}
		return 0;
	}
}